package demo1;

public class Animal {
    public String name;
    public int age;


    public Animal(String name,int age){
        this.age=age;
        this.name=name;
        //System.out.println("构造::Animal");
    }

    public void eat(){
        System.out.println("正在吃饭");
    }
}
